package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "t_subhk_fund_cashpos")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@IdClass(CashPosId.class)
public class CashPos {
    @Id
    @Column(name="ccy")
    @ExcelProperty("ccy")
    private String ccy;

    @Id
    @Column(name="amt")
    @ExcelProperty("amt")
    private Double amt;

    @Id
    @Column(name="rptdt")
    @ExcelProperty("rptdt")
    private String rptdt;

    @Id
    @Column(name="fd_date")
    private Date date;

    public String getCcy() {
        return ccy;
    }

    public void setCcy(String ccy) {
        this.ccy = ccy;
    }

    public Double getAmt() {
        return amt;
    }

    public void setAmt(Double amt) {
        this.amt = amt;
    }

    public String getRptdt() {
        return rptdt;
    }

    public void setRptdt(String rptdt) {
        this.rptdt = rptdt;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }
}
